﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MVCPets.Helpers;

namespace MVCPets.Controllers
{
  public class SystemController : BaseController
  {
    #region Security
    protected override void Initialize(System.Web.Routing.RequestContext requestContext)
    {
      base.Initialize(requestContext);

      if (SessionHelper.UserRole <= RoleHelper.GetRoleValue("Administrator")) Return404();
    }
    #endregion

    public ActionResult Index()
    {
      return View();
    }
  }
}
